//
//  SignInModel.swift
//  koolcar
//
//  Created by kuaimaxiansheng on 2023/10/7.
//

import UIKit
import ObjectMapper
class SignInModel: Mappable {
    var code: String?
    var msg: String?
    var data: SignInDataModel?
    func mapping(map: Map) {
        code <- map["code"]
        msg <- map["msg"]
        data <- map["data"]
    }
    required init?(map: Map) {
        
    }
}

class SignInDataModel: Mappable {
    var integral: NSInteger?//返回的积分，如果为-1表示签到奖励活动未开启
    var signStatus: NSInteger?//1表示今天已经签到过，2表示这是今天的第一次签到
    var signReward: SignInContentModel?
    func mapping(map: Map) {
        integral <- map["integral"]
        signStatus <- map["signStatus"]
        signReward <- map["signReward"]
    }
    required init?(map: Map) {
        
    }
}

class SignInContentModel: Mappable {
    var backgroundImg: String?
    var createById: NSInteger?
    var createByName: String?
    var createdTime: String?
    var delFlag: NSInteger?
    var description: String?
    var id: NSInteger?
    var integral: NSInteger?
    var integralEnd: NSInteger?
    var isOpen: NSInteger?//是否开启活动 1否 2是
    var modifyTime: String?
    var title: String?
    var updateByName: String?
    
    func mapping(map: Map) {
        backgroundImg <- map["backgroundImg"]
        createById <- map["createById"]
        createByName <- map["createByName"]
        createdTime <- map["createdTime"]
        delFlag <- map["delFlag"]
        description <- map["description"]
        backgroundImg <- map["backgroundImg"]
        id <- map["id"]
        integral <- map["integral"]
        integralEnd <- map["integralEnd"]
        isOpen <- map["isOpen"]
        modifyTime <- map["modifyTime"]
        modifyTime <- map["modifyTime"]
        title <- map["title"]
        updateByName <- map["updateByName"]
       
    }
    required init?(map: Map) {
        
    }
}
